package org.diffshop.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.diffshop.common.utils.PageUtils;
import org.diffshop.product.entity.PmsAttrGroupEntity;
import org.diffshop.product.vo.AttrGroupWithAttrVO;
import org.diffshop.product.vo.AttrVO;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author tjf
 * @date 2024-05-08 16:04:20
 */
public interface PmsAttrGroupService extends IService<PmsAttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 根据catId查询属性分组并分页
     * @param params
     * @param catId
     * @return
     */
    PageUtils queryPage(Map<String, Object> params, Long catId);

    List<AttrVO> getAttrsByAttrGroupId(Long attrGroupId);

    PageUtils getNoAttrsByAttrGroupId(Map<String, Object> params, Long attrGroupId);

    List<AttrGroupWithAttrVO> getAttrGroupWithAttrByCatalogId(Long catalogId);
}

